﻿Ext.define('GW.model.bible.Chapter', {
	extend: 'Ext.data.Model',
	requires: ['GW.model.bible.Verse'],
	fields: [
		{name: 'id', type: 'string'},
		{name: 'book', type: 'string'},
		{name: 'chapter', type: 'string'}
	],
	hasMany: {model: 'GW.model.bible.Verse', name: 'verses'},
	
	proxy: {
		type: 'rest',
		url : '/content/bibles',
		format: 'json',
		noCache: false
	}
});